import requestService from "../service/request";
const Api = {
  city: "/film/cinema/getCityList",
  region: "/film/cinema/getDistrictList",
  location: "/map/geocoderLocationForCityId",
};

//获取城市信息
export function cityList() {
  return requestService(Api.city, {
    type: "get",
  });
}
//行政辖区
export function region(data) {
  return requestService(Api.region, {
    type: "post",
    data,
    paramsFormdata: "application/x-www-form-urlencoded",
  });
}

//微信获取签名 jssdk
// export function Location(data) {
//   return requestService(Api.location, {
//     type: "get",
//     data,
//     paramsFormdata: "application/x-www-form-urlencoded",
//   });
// }

//根据经纬度获取详细地址信息
export function getLocationMesage(data) {
  return requestService(Api.location, {
    type: "post",
    data,
    paramsFormdata: "application/x-www-form-urlencoded",
  });
}
